<template>
	<div>
		<index-notice></index-notice>
		<div v-for="(item, index) in goodsList">
			<recommend v-if='item.type == "recommend" ' :data="item" :key='index'></recommend>
			<goods-select v-if='item.type == "goods_select" ' :data="item" :key='index'></goods-select>
		</div>
	</div>

</template>

<script>
	import Recommend from '@/pages/index/index/recommend/recommend'
	import goodsSelect from '@/pages/index/index/goods-select/goods-select'
	import indexNotice from "@/components/index-notice/index-notice"
	export default {
		props: {
			goodsList: {
				type: Array,
				require: true
			},
			
		},
		components: {
			'recommend': Recommend,
			'goods-select': goodsSelect,
			'index-notice': indexNotice

		}
	}
</script>

<style>

</style>